home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
AppleScript - The Beta Release
/
AppleScript - The Beta Release.iso
/
Development Tools
/
Sample Applications
/
7Edit 3.0d7
/
7Edit Source
/
7Edit Think C
/
PLStrs.c
< prev
Encoding:
Amiga
Atari
Commodore
DOS
FM Towns/JPY
Macintosh
Macintosh JP
Macintosh to JP
NeXTSTEP
RISC OS/Acorn
Shift JIS
UTF-8
Wrap
C/C++ Source or Header
|
1992-11-24
|
465 b
|
26 lines
|
[
TEXT/KAHL
]
#ifndef __TYPES__
#include <Types.h>
#endif
#include <memory.h>
pascal StringPtr PLstrcpy(StringPtr str1, StringPtr str2)
{
BlockMove(str2, str1, str2[0]);
return(str1);
}
pascal StringPtr PLstrcat(StringPtr str1, StringPtr str2)
{
long copyLen;
if (str1[0] + 1 + str2[0]>255)
copyLen = 255 - str1[0];
else
copyLen = str2[0];
BlockMove(&str2[1], str1 + 1 + str1[0], copyLen);
str1[0] += copyLen;
return(str1);
}